package c02;

public class Lianxi6 {
    public static void main(String[] args) {
        printRectangle(15);
    }
    public static void printRectangle(int height){
        for (int i = 1; i <= height; i = i + 2){
            for (int j = 0; j < (height - i)/ 2; j++) {
                System.out.println(" ");
            }
            for (int j = 0;j < i; j++){
                System.out.print("*");
            }
            System.out.print("\n");
        }//1
        System.out.print("\n");
    }
}
